<template>
  <view class="index" :class="nodata ? 'index2' : 'index1'">
    <view class="jtop">
      <view class="status_bar"><!-- 这里是状态栏 --></view>
      <view class="jtop_l" @tap="navigateBack"
        ><image src="../../static/img/ic_back.png"></image
      ></view>
      <view class="jtop_c">
        <view>
          会议纪要
        </view>
      </view>

      <view class="jtop_r" @tap="jshow_pop" v-if="xsdd"
        ><image src="../../static/img/index/ic_ellipsis.png"></image
      ></view>
      <view class="jtop_r" @tap="btrl"
        ><image src="../../static/img/calendar.png"></image
      ></view>
    </view>

    <view class="tophr"></view>

    <!-- 日历 -->
    <view class="content" v-show="rl">
      <RenCalendar
        ref="ren"
        :markDays="markDays"
        :open="true"
        :disabledAfter="true"
        @onDayClickaa="onDayClickaa"
        @onDayClick="onDayClick"
      ></RenCalendar>
      <view class="cbj" @click="btrl"></view>
    </view>
    <!-- 日历 -->

    <!-- 列表 -->
    <view v-if="!nodata && !xsdd">
      <view
        class="ti"
        @tap="build_m(item.id)"
        v-for="(item, index) in Array.prototype.reverse.call(items)"
        :key="item.id"
      >
        {{ item.subject }}
        <image src="../../static/img/jt.png"></image>
        <text
          >{{ item.beginTime | dCreateTime }} -{{
            item.endTime | dCreateTime
          }}</text
        >
      </view>

      <view class="no_btt2" @tap="btadd">
        新增会议纪要
      </view>
    </view>
    <!-- 列表 -->

    <!-- 详情 -->
    <view class="addb" v-if="xsdd">
      <view class="addb_1"> {{ jt }} {{ xq }} </view>
      <view>会议主题：{{ jc.subject }}</view>
      <view>会议地点：{{ jc.address }}</view>
      <view
        >会议时间：{{ jc.beginTime | dCreateTime }} -
        {{ jc.endTime | dCreateTime }}</view
      >
      <view>与会名单：{{ jc.participants }}</view>
      <view>会议内容：{{ jc.content }}</view>
      <view>会议结论：{{ jc.conclusion }}</view>
      <view>记录人员：{{ jc.createByName }}</view>
    </view>
    <!-- 详情 -->

    <!-- 新增 -->
    <view class="no" v-if="nodata">
      <view class="addb">
        <view class="addb_1"> {{ jt }} {{ week }} </view>
      </view>
      <view class="addb">
        <view class="addi2">
          <text>会议主题</text>
          <input
            type="text"
            placeholder="请输入会议主题"
            :value="subject"
            @input="onKeyInput_o"
            placeholder-style="color:#CCCCCC"
          />
        </view>
        <view class="addi2">
          <text>会议地点</text>
          <input
            type="text"
            placeholder="请输入会议地点"
            :value="address"
            @input="onKeyInput_t"
            placeholder-style="color:#CCCCCC"
          />
        </view>

        <view
          class="addbi addi2"
          v-for="(item, index) in list"
          :key="index"
          :class="index == 1 ? 'noborder' : ''"
        >
          <text class="cell-title">
            {{ item.title }}
          </text>
          <input
            type="text"
            :placeholder="item.title2"
            :value="item.detail"
            disabled
            class="data_i"
            placeholder-style="color:#CCCCCC"
            @click="selectDatePicker(item.type, index)"
          />
          <image src="../../static/img/jt.png"></image>
        </view>

        <!-- <e-picker-plus class="addbi addi2" @confirm="confirm" mode="hm">
          <text class="addbil">开始时间</text>
          <image src="../../static/img/jt.png" @confirm="confirm"></image>
          <text class="addbir" @confirm="confirm">{{ beginDate }}</text>
        </e-picker-plus> -->

        <!-- <e-picker-plus class="addi2 noborder" @confirm="confirm2" mode="hm">
          <text class="addbil">结束时间</text>
          <image src="../../static/img/jt.png" @confirm="confirm2"></image>
          <text class="addbir" @confirm="confirm2">{{ endDate }}</text>
        </e-picker-plus> -->
      </view>

      <view class="addb">
        <view class="addi2 noborder">
          <text>与会名单</text>
          <input
            type="text"
            placeholder="请输入与会人员"
            :value="participants"
            @input="onKeyInput_c"
            placeholder-style="color:#CCCCCC"
          />
        </view>
      </view>

      <view class="addi">
        <text>会议内容</text>
        <textarea
        auto-height="true"
        style="min-height: 150rpx;"
        maxlength="-1"
          placeholder-style="color:#CCCCCC"
          :value="content"
          @input="onKeyInput_i"
          placeholder="请输入会议内容"
        />
      </view>

      <view class="addi">
        <text>会议结论</text>
        <textarea
        auto-height="true"
        style="min-height: 150rpx;"
        maxlength="-1"
          placeholder-style="color:#CCCCCC"
          :value="conclusion"
          @input="onKeyInput_l"
          placeholder="请输入会议结论"
        />
      </view>

      <view class="addi_f">
        <view
          class="addi_fbt"
          :style="{ opacity: content ? '1' : '.6' }"
          @click="jsave"
        >
          保存
        </view>
      </view>
    </view>
    <!-- 新增 -->

    <!-- 弹出层 -->
    <view :class="[ashowpop ? 'tc' : 'tc hide']">
      <view class="jtop_bj" @click="jshow_pop"></view>

      <view class="tc_fbox">
        <view class="tc_fbox_bt3" @click="btTC_bj">
          编辑会议纪要
        </view>
        <view class="tc_fbox_bt2" style="color: #EB5342;" @click="btTC_jdel">
          删除会议纪要
        </view>
        <view class="tc_fbox_bt" @click="jshow_pop">
          取消
        </view>
      </view>
    </view>

    <date-time-picker
      ref="date-time"
      :indicatorStyle="indicatorStyle"
      :type="type"
      :datestring="dateString"
      @change="dateTimeChange"
      style="margin:0"
    ></date-time-picker>
  </view>
</template>

<script>
import request from '@/common/request.js';
import DateTimePicker from '@/components/bory-dateTimePicker/bory-dateTimePicker.vue';
import RenCalendar from '@/components/new-build/new-build.vue';

export default {
  filters: {
    dCreateTime(value) {
      if (value) {
        console.log(value);
        var df = value.slice(11);
        console.log(df);
        return df;
      }
    },
  },
  components: {
    DateTimePicker,
    RenCalendar,
  },
  computed: {
    indicatorStyle() {
      return {
        background: 'rgba(255,0,0,.2)',
        height: '40px',
      };
    },
  },
  data() {
    return {
      dateString: '',
      type: 'hour-minute',
      list: [
        {
          type: 'hour-minute',
          title: '开始时间',
          title2: '请选择开始时间',
          detail: '',
        },
        {
          type: 'hour-minute',
          title: '结束时间',
          title2: '请选择结束时间',
          detail: '',
        },
      ],

      repeat_click: true,
      ashowpop: false,
      curDate: '',
      markDays: [],
      choose: '',
      collapsible: false,
      nian: '',
      yue: '',
      nodata: true,
      items: '',
      jqeditid: '',
      ashowpop2: false,
      projectId: uni.getStorageSync('dqfull_name').id,
      today: '',
      week: '',
      jimg: '',
      rl: false,

      beginDate: '',
      endDate: '',

      address: '',
      beginTime: '',
      conclusion: '',
      content: '',
      endTime: '',
      id: '',
      participants: '',
      subject: '',

      jt: '',
      xq: '',
      date: '',
      city: '',
      tq: '',
      wd: '',
      xsdd: false,

      jc: [],
    };
  },
  onShow() {
    this.ashowpop = false;
  },

  onReady() {
    // let today = this.$refs.ren.getToday().date;
    // this.curDate = today;
    // this.markDays.push(today);

    this.today = '';

    this.curDate = '';

    this.markDays = [];

    // let today = this.$refs.ren.getToday().date;
    this.nian = new Date().getFullYear();
    this.yue = new Date().getMonth() + 1;

    var date = new Date();
    var Y = date.getFullYear();
    var M =
      date.getMonth() + 1 < 10
        ? '0' + (date.getMonth() + 1)
        : date.getMonth() + 1;
    var D = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();

    var now = new Date();
    var day = now.getDay();
    var weeks = new Array(
      '星期日',
      '星期一',
      '星期二',
      '星期三',
      '星期四',
      '星期五',
      '星期六',
    );
    var week = weeks[day];

    this.week = week;
    this.xq = week;

    let today = Y + '-' + M + '-' + D;

    this.jt = Y + '年' + M + '月' + D + '日';

    this.today = today;

    this.curDate = today;

    this.markDays.push(today);
    this.choose = today;
    this.lb(today);
  },
  methods: {
    selectDatePicker(type, index) {
      this.type = type;
      this.index = index;
      this.$refs['date-time'].show();
    },
    /**
     * isShowToolBar：true 点击确定获取数值
     * isShowToolBar：false 滑动获取返回数据
     */
    dateTimeChange(value) {
      let item = this.list[this.index];
      item['detail'] = value;
      this.list.splice(this.index, 1, item);
    },

    //编辑
    btTC_bj() {
      uni.navigateTo({
        url: '../main/meeting_edit',
      });
    },
    //删除
    btTC_jdel() {
      let that = this;
      request({
        url: `/biz/project-meeting-minutes/${uni.getStorageSync('jc').id}`,
        method: 'DELETE',

        success: res => {
          if (res.data.success == true) {
            that.lb(that.curDate);
            that.beginDate = '';

            that.endDate = '';

            that.subject = '';

            that.address = '';

            that.participants = '';

            that.content = '';

            that.conclusion = '';

            that.ashowpop = false;
            wx.showToast({
              title: '删除成功',
              icon: 'none',
              duration: 1500,
              success: function() {
                setTimeout(function() {
                  that.xsdd = false;
                }, 2000);
              },
            });
          } else {
            // 错误
            this.repeat_click = true;
            uni.showToast({
              title: res.data.msg,
              icon: 'none',
            });
          }
        },
        fail: () => {
          this.repeat_click = true;
          uni.showToast({
            title: '服务器开小差，请稍后~',
            icon: 'none',
          });
          return false;
        },
      });
    },
    //删除
    //新增start
    confirm(e) {
      console.log(e);
      this.beginDate = e.result;
    },

    confirm2(e) {
      console.log(e);
      this.endDate = e.result;
    },

    onKeyInput_o: function(event) {
      this.subject = event.detail.value;
    },
    onKeyInput_t: function(event) {
      this.address = event.detail.value;
    },
    onKeyInput_c: function(event) {
      this.participants = event.detail.value;
    },

    onKeyInput_i: function(event) {
      this.content = event.detail.value;
    },
    onKeyInput_l: function(event) {
      this.conclusion = event.detail.value;
    },

    jsave() {
      if (!this.repeat_click) {
        return;
      }
      this.repeat_click = false;

      let that = this;

      request({
        url: `/biz/project-meeting-minutes`,
        data: {
          address: that.address,
          beginTime: that.curDate + ' ' + that.list[0].detail + ':00',
          conclusion: that.conclusion,
          content: that.content,
          endTime: that.curDate + ' ' + that.list[1].detail + ':00',
          participants: that.participants,
          subject: that.subject,
          meetingDate: that.curDate,
        },

        method: 'POST',
        success: openIdRes => {
          console.log(openIdRes);
          if (openIdRes.data.success == true) {
            that.lb(that.curDate);
            wx.showToast({
              title: '添加成功',
              icon: 'none',
              duration: 1500,
              success: function() {
                setTimeout(function() {
                  that.nodata = false;
                }, 2000);
              },
            });

            // uni.navigateBack()
          } else {
            this.repeat_click = true;
            uni.showToast({
              title: openIdRes.data.msg,
              icon: 'none',
            });
            that.isLoading = false;
          }
        },
      });
    },

    //新增end

    btTC_bj() {
      // var jc = this.items.filter((item) => {
      //      return item.id == this.jqeditid;
      // });

      console.log(this.jc);

      uni.setStorageSync('jc', this.jc);

      uni.navigateTo({
        url: '../main/meeting_edit',
      });
    },

    logoTime(e) {
      console.log(e);
      this.jqeditid = e;
      this.ashowpop2 = true;
    },

    btTCC(e) {
      this.ashowpop2 = !this.ashowpop2;
    },
    btrl() {
      this.rl = !this.rl;
    },

    lb(e) {
      // var anian = new Date().getFullYear();
      // var ayue = new Date().getMonth() + 1;
      // var ayue = new Date().getDay();
      // var rq = anian+"-"+ayue+"-"+ayue
      console.log('lbbb:', e);
      var cc = e.slice(0, 7);
      console.log('lbbb222:', cc);

      // 获取列表信息
      this.hqdd(cc);

      // 获取列表信息
      request({
        url: `/biz/project-meeting-minutes/day`,
        method: 'GET',
        data: {
          date: e,
        },

        success: res => {
          console.log('项目列表', res);

          if (res.data.success == true) {
            if (res.data.data) {
              this.items = res.data.data;
              if (res.data.data.photo) {
                var cc = res.data.data.photo;
                this.jimg = cc.split(',');
              }

              console.log(this.items);
              this.nodata = false;
              this.xsdd = false;
            } else {
              this.items = '';
              this.dqfull_name = '';
              this.nodata = true;
              this.xsdd = false;
            }
          } else {
            this.repeat_click = true;
            uni.showToast({
              title: res.data.msg,
              icon: 'none',
            });
          }
        },
      });
    },

    btadd() {
      this.beginDate = '';

      this.endDate = '';

      this.subject = '';

      this.address = '';

      this.participants = '';

      this.content = '';

      this.conclusion = '';

      this.week = this.week;
      this.xq = this.week;

      uni.setStorageSync('jt', this.jt);
      uni.setStorageSync('rq', this.curDate);
      uni.setStorageSync('week', this.week);

      this.nodata = true;

      // uni.navigateTo({
      // 	url: '../main/meeting_add',
      // });
    },

    // 跳转
    jshow_pop() {
      this.ashowpop = !this.ashowpop;
    },

    build_i(e) {
      console.log(e);
      uni.navigateTo({
        url: '../main/meeting_i?jimg=' + e,
      });
    },

    build_m(e) {
      // this.curDate = data.date;
      // this.jt = data.date
      // this.week = this.week;
      // uni.setStorageSync("jt",this.jt);
      // uni.setStorageSync("rq",this.curDate);
      // uni.setStorageSync("week",this.week);
      this.week = this.week;
      this.xq = this.week;
      this.xsdd = true;
      uni.setStorageSync('jt', this.jt);
      uni.setStorageSync('rq', this.curDate);
      uni.setStorageSync('week', this.week);

      var jc = this.items.filter(item => {
        return item.id == e;
      });

      console.log('jcLlll:', jc);

      uni.setStorageSync('jc', jc[0]);
      this.jc = jc[0];

      // uni.navigateTo({
      // 	url: '../main/meeting_m',
      // });
    },

    // 跳转
    jshow_pop() {
      this.ashowpop = !this.ashowpop;
    },

    build_e() {
      uni.navigateTo({
        url: '../main/meeting_e',
      });
    },
    // 跳转
    to_add() {
      uni.navigateTo({
        url: '../main/clock_work_m',
      });
    },

    navigateBack() {
      // uni.navigateBack()
      uni.switchTab({
        url: '../main/main',
      });
    },
    onDayClickaa(aa) {
      this.hqdd(aa);
    },
    hqdd(aa) {
      var that = this;
      // 获取列表信息
      request({
        url: `/biz/project-meeting-minutes/days`,
        method: 'GET',
        data: {
          month: aa,
        },

        success: res => {
          console.log('项目dd列表qqq', res);
          console.log(res.data.data.length);
          if (res.data.success == true) {
            if (res.data.data.length > 0) {
              that.markDays = res.data.data;
              console.log(that.markDays);
            } else {
              that.markDays = [];
              this.dqfull_name = '';
            }
          } else {
            this.repeat_click = true;
            uni.showToast({
              title: res.data.msg,
              icon: 'none',
            });
          }
        },
      });
    },

    onDayClick(data) {
      this.curDate = data.date;

      console.log(data);
      this.jt = data.date;
      this.lb(data.date);
      this.week = data.week;
      this.xq = data.week;
      this.rl = false;

      this.beginDate = '';

      this.endDate = '';

      this.subject = '';

      this.address = '';

      this.participants = '';

      this.content = '';

      this.conclusion = '';
    },
  },
};
</script>

<style>
.tc {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  display: block;
}
.jtop_bj {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
}
.tc_fbox_bt {
  width: 100%;
  height: 90rpx;
  line-height: 90rpx;
  display: block;
  float: left;
  text-align: center;
  font-size: 36rpx;
  color: #000000;
  border-top: 20rpx solid #f2f2f2;
  background: #ffffff;
}
.tc_fbox {
  width: 100%;
  height: auto;
  display: block;
  float: left;
  background: #f2f2f2;
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 10001;
}
.tc_fbox_bt2 {
  width: 100%;
  height: 90rpx;
  line-height: 90rpx;
  display: block;
  float: left;
  text-align: center;
  font-size: 36rpx;
  color: #000000;
  border-top: 0rpx solid #f2f2f2;
  background: #ffffff;
}
.tc_fbox_bt3 {
  width: 100%;
  height: 90rpx;
  line-height: 90rpx;
  display: block;
  float: left;
  text-align: center;
  font-size: 36rpx;
  color: #000000;
  border-bottom: 1px solid #dddddd;
  background: #ffffff;
}

.no {
  width: 100%;
  height: auto;
  display: block;
  float: left;
  margin: 0 0 200rpx;
}
.no_t {
  width: 690rpx;
  padding: 40rpx 30rpx 30rpx;
  height: auto;
  color: #666666;
  font-size: 32rpx;
  line-height: 40rpx;
  display: block;
  float: left;
  text-align: center;
}
.no_bt {
  width: 460rpx;
  height: 94rpx;
  margin: 50rpx 0 0 130rpx;
  color: #ffffff;
  font-size: 36rpx;
  line-height: 48rpx;
  background: #2db755;
  display: block;
  float: left;
  border-radius: 10rpx;
  text-align: center;
}

.no_bt image {
  width: 48rpx;
  height: 48rpx;
  display: block;
  float: left;
  margin: 20rpx 20rpx 0rpx 88rpx;
}
.no_btt {
  width: auto;
  height: 48rpx;
  display: block;
  float: left;
  margin: 20rpx 0rpx 0rpx 0;
  line-height: 48rpx;
}

.cf {
  width: 690rpx;
  padding: 25rpx 30rpx;
  height: auto;
  color: #256aff;
  font-size: 32rpx;
  line-height: 40rpx;
  display: block;
  float: left;
  border-bottom: 1px solid #dddddd;
}
.ti {
  width: 690rpx;
  padding: 40rpx 30rpx 30rpx;
  height: auto;
  color: #000000;
  font-size: 32rpx;
  line-height: 40rpx;
  display: block;
  float: left;
  border-bottom: 1px solid #dddddd;
}
.ti image {
  width: 16rpx;
  height: 25rpx;
  display: block;
  float: right;
  margin: 10rpx 0rpx 0 0rpx;
}

.ti text {
  width: 300rpx;
  height: 25rpx;
  display: block;
  float: right;
  margin: 0rpx 20rpx 0 0rpx;
}
.tt {
  width: 690rpx;
  padding: 0rpx 30rpx 30rpx;
  height: auto;
  color: #666666;
  font-size: 32rpx;
  line-height: 40rpx;
  display: block;
  float: left;
}
.tt view {
  margin: 0 0 30rpx;
}
.tt image {
  width: 160rpx;
  height: 160rpx;
  display: block;
  float: left;
  margin: 0rpx 20rpx 20rpx 0;
}

.cf_b {
  width: 690rpx;
  height: auto;
  display: block;
  float: left;
  margin: 0 30rpx;
}
.cf01 {
  width: 100%;
  height: auto;
  display: block;
  float: left;
  color: #000000;
  font-size: 28rpx;
  line-height: 36rpx;
  margin: 20rpx 0;
}
.cf02 {
  width: 100%;
  height: auto;
  display: block;
  float: left;
  color: #999999;
  font-size: 24rpx;
  line-height: 32rpx;
  margin: 0 0 20rpx;
}
.cf03 {
  width: 100rpx;
  height: auto;
  display: block;
  float: left;
  color: #000000;
  font-size: 34rpx;
  line-height: 32rpx;
  margin: 40rpx 40rpx 40rpx 0;
}
.cf04 {
  width: 500rpx;
  height: auto;
  display: block;
  float: left;
  margin: 0 0rpx;
}
.cf04t {
  width: 100%;
  height: auto;
  display: block;
  float: left;
  color: #000000;
  font-size: 28rpx;
  line-height: 36rpx;
  margin: 20rpx 0 10rpx;
}
.cf04f {
  width: 100%;
  height: auto;
  display: block;
  float: left;
  color: #999999;
  font-size: 24rpx;
  line-height: 32rpx;
  margin: 0rpx 0 22rpx;
}

.content {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  display: block;
}
.cbj {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}
.calendar-wrapper {
  z-index: 999999;
  position: relative;
  margin-top: 88rpx;
}
.jtop {
  width: 100%;
  height: 88rpx;
  background: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100000000;
}

.tophr {
  width: 100%;
  height: 88rpx;
}
.uni-searchbar {
  box-shadow: none;
}
.index {
  background: #ffffff;
  width: 100%;
  height: auto;
  overflow-x: hidden;
}
.jtop {
  width: 100%;
  height: 88rpx;
  background: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
}
.jtop_l {
  width: auto;
  height: 88rpx;
  display: block;
  float: left;
  font-size: 32rpx;
  color: #000000;
  line-height: 88rpx;
  margin: 0 0 0 30rpx;
}
.jtop_l image {
  width: 48rpx;
  height: 48rpx;
  display: block;
  float: left;
  margin: 20rpx 0 20rpx 0;
}
.jtop_lt {
  margin: 0 0 0 10rpx;
}
.jtop_r {
  width: 48rpx;
  color: #ffffff;
  text-align: right;
  height: 48rpx;
  display: block;
  float: right;
  margin: 20rpx 40rpx 0 0;
}
.jtop_rl {
  margin: 20rpx 30rpx 0 0;
}
.jtop_r image {
  width: 48rpx;
  height: 48rpx;
  display: block;
  float: left;
}
.jtop_c {
  width: 70%;
  height: 48rpx;
  line-height: 48rpx;
  display: block;
  float: left;
  position: fixed;
  top: 20rpx;
  left: 15%;
  text-align: center;
  font-size: 36rpx;
  color: #000000;
}
.jtop_c image {
  width: 36rpx;
  height: 36rpx;
  display: inline-block;
  float: none;
  margin-bottom: -5rpx;
  margin-left: 5rpx;
}
.jtop_b {
  width: 100%;
  height: auto;
  background: #ffffff;
  position: fixed;
  top: 88rpx;
  left: 0;
  z-index: 1001;
}
.jtop_c1 {
  display: inline-block;
  margin: 0 20rpx;
  color: #000000;
}
.jtop_c1.active {
  color: #000000;
}

.change {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  margin-top: 100rpx;
  height: 100rpx;
  color: #b89249;
  background-color: #21191b;
}

.we {
  width: 100%;
  height: auto;
  display: block;
  float: left;
  border-bottom: 1px solid #dddddd;
}
.we1 {
  width: 6rpx;
  height: 36rpx;
  margin: 42rpx 24rpx 0 0;
  background: rgba(45, 138, 85, 1);
  border-radius: 3rpx;
  display: block;
  float: left;
}
.we2 {
  width: auto;
  height: auto;
  display: block;
  float: left;
  color: #000000;
  font-size: 28rpx;
  line-height: 36rpx;
  margin: 42rpx 0;
}
.we3 {
  width: 48rpx;
  height: 48rpx;
  display: block;
  float: right;
  color: #000000;
  font-size: 28rpx;
  line-height: 36rpx;
  margin: 36rpx 30rpx 0 0;
}

.at {
  width: 160rpx;
  height: 160rpx;
  display: block;
  float: left;
  margin: 0rpx 0 0 0;
}
.att {
  width: 720rpx;
  margin: 0 0 30rpx 30rpx;
  height: auto;
  display: block;
  float: left;
  background: #ffffff;
}

.addb_1 {
  width: 720rpx;
  margin: 20rpx 30rpx 20rpx 30rpx;
  font-size: 32rpx;
  line-height: 4r0px;
  color: #000000;
  height: auto;
  display: block;
  float: left;
}
.addb_2 {
  width: 720rpx;
  margin: 0rpx 30rpx 20rpx 30rpx;
  font-size: 32rpx;
  line-height: 4r0px;
  color: #666666;
  height: auto;
  display: block;
  float: left;
}

.ptt {
  width: 100%;
  height: auto;
  display: block;
  float: left;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-left: 0;
  border-right: 0;
  margin: 20rpx 0 0;
}
.pttl {
  width: 84rpx;
  height: 84rpx;
  display: block;
  float: left;
  margin: 18rpx 20rpx 18rpx 30rpx;
}
.pttr {
  width: 400rpx;
  height: 84rpx;
  display: block;
  float: left;
  margin: 18rpx 0rpx 0rpx 0rpx;
}
.pttrt {
  width: 100%;
  height: 42rpx;
  line-height: 42rpx;
  display: block;
  float: left;
  font-size: 34rpx;
  color: #000000;
}
.pttrf {
  width: 100%;
  height: 42rpx;
  line-height: 42rpx;
  display: block;
  float: left;
  font-size: 24rpx;
  color: #999999;
}
.pttjt {
  width: 16rpx;
  height: 25rpx;
  display: block;
  float: right;
  margin: 48rpx 30rpx 0 30rpx;
}
.ptf {
  width: 100%;
  height: auto;
  display: block;
  float: left;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-left: 0;
  border-right: 0;
  margin: 20rpx 0 0;
}
.ptft {
  width: 720rpx;
  margin: 0 0 0 30rpx;
  height: 90rpx;
  display: block;
  float: left;
  background: #ffffff;
}
.ptft image {
  width: 48rpx;
  height: 48rpx;
  display: block;
  float: left;
  margin: 21rpx 20rpx 0 0rpx;
}
.ptft text {
  width: auto;
  height: 48rpx;
  display: block;
  float: left;
  margin: 21rpx 20rpx 0 0rpx;
  font-size: 34rpx;
  line-height: 48rpx;
  color: #000000;
}

.addi2 {
  width: 720rpx;
  margin: 0 0 0 30rpx;
  height: 90rpx;
  display: block;
  float: left;
  background: #ffffff;
  border-bottom: 1px solid #dddddd;
}
.addi {
  width: 100%;
  height: auto;
  display: block;
  float: left;
  background: #ffffff;
  box-shadow: inset 0px 1px 0px #dddddd, inset 0px -1px 0px #dddddd;
  margin: 20rpx 0 0;
}
.addi2 text {
  width: 200rpx;
  height: 90rpx;
  display: block;
  float: left;
  line-height: 90rpx;
  font-size: 34rpx;
  color: #000000;
  margin: 0 0 0 0rpx;
}
.addi text {
  width: 200rpx;
  height: 90rpx;
  display: block;
  float: left;
  line-height: 90rpx;
  font-size: 34rpx;
  color: #000000;
  margin: 0 0 0 30rpx;
}
.addi input,
.addi2 input {
  width: auto;
  height: 50rpx;
  display: block;
  float: left;
  margin: 20rpx 30rpx 0 0;
  text-align: left;
  line-height: 50rpx;
  font-size: 34rpx;
  color: #000000;
}
.addb {
  width: 100%;
  height: auto;
  display: block;
  float: left;
  background: #ffffff;
  border: 0;
  border-left: 0;
  border-right: 0;
  margin: 20rpx 0 0;
}
.addbi {
  width: 720rpx;
  margin: 0 0 0 30rpx;
  height: 90rpx;
  display: block;
  float: left;
  background: #ffffff;
  border-bottom: 1px solid #dddddd;
}
.addb .addbi:last-child {
  border: none;
}
.addbil {
  width: 200rpx;
  height: 90rpx;
  display: block;
  float: left;
  line-height: 90rpx;
  text-align: left;
  font-size: 34rpx;
  color: #000000;
}
.addbi .addbir {
  width: auto;
  height: 90rpx;
  display: block;
  float: left;
  line-height: 90rpx;
  font-size: 32rpx;
  color: #000000;
}
.addbi image {
  width: 16rpx;
  height: 25rpx;
  display: block;
  float: right;
  margin: 33rpx 30rpx 0 30rpx;
}
.addi textarea {
  width: 690rpx;
  height: 150rpx;
  display: block;
  float: left;
  margin: 0rpx 30rpx 20rpx;
  text-align: left;
  line-height: 40rpx;
  font-size: 34rpx;
  color: #000000;
}

.nd {
  width: 735rpx;
  height: auto;
  display: block;
  float: left;
  margin: 0 0 0 0rpx;
}
.nd_bt {
  width: auto;
  height: 48rpx;
  display: block;
  float: right;
  border: 1px solid #dddddd;
  border-radius: 24rpx;
  margin: 40rpx 0 40rpx 30rpx;
}
.nd_bt text {
  width: auto;
  height: 48rpx;
  display: block;
  float: left;
  margin: 0 7rpx 0 18rpx;
  line-height: 48rpx;
  color: #666666;
  font-size: 24rpx;
}
.nd_bt image {
  width: 13rpx;
  height: 8rpx;
  display: block;
  float: left;
  margin: 21rpx 14rpx 0 0;
}

.tc {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  display: block;
}
.jtop_bj {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
}
.tc_fbox_bt {
  width: 100%;
  height: 90rpx;
  line-height: 90rpx;
  display: block;
  float: left;
  text-align: center;
  font-size: 36rpx;
  color: #000000;
  border-top: 20rpx solid #f2f2f2;
  background: #ffffff;
}
.tc_fbox {
  width: 100%;
  height: auto;
  display: block;
  float: left;
  background: #f2f2f2;
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 10001;
}
.tc_fbox_bt2 {
  width: 100%;
  height: 90rpx;
  line-height: 90rpx;
  display: block;
  float: left;
  text-align: center;
  font-size: 36rpx;
  color: #000000;
  border-top: 0rpx solid #f2f2f2;
  background: #ffffff;
}
.tc_fbox_bt3 {
  width: 100%;
  height: 90rpx;
  line-height: 90rpx;
  display: block;
  float: left;
  text-align: center;
  font-size: 36rpx;
  color: #000000;
  border-bottom: 1px solid #dddddd;
  background: #ffffff;
}

.addi2 image {
  width: 16rpx;
  height: 25rpx;
  display: block;
  float: right;
  margin: 33rpx 30rpx 0 30rpx;
}

.index2 {
  background: #f2f2f2;
}
.addi_f {
  width: 100%;
  height: 134rpx;
  background: #ffffff;
  position: fixed;
  overflow-x: hidden;
  /* box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.1); */
  left: 0;
  bottom: 0;
}
.addi_fbt {
  width: 690rpx;
  height: 94rpx;
  margin: 20rpx 0 0 30rpx;

  background: #256aff;
  border-radius: 8rpx;
  text-align: center;
  font-size: 36rpx;
  color: #ffffff;
  line-height: 94rpx;
}

.addb_1 {
  width: 720rpx;
  margin: 20rpx 30rpx 20rpx 30rpx;
  font-size: 32rpx;
  line-height: 40px;
  color: #000000;
  height: auto;
  display: block;
  float: left;
}

.addb view {
  width: 720rpx;
  margin: 0rpx 30rpx 10rpx 30rpx;
  font-size: 32rpx;
  line-height: 40px;
  color: #000000;
  height: auto;
  display: block;
  float: left;
}
.addb_2 {
  width: 720rpx;
  margin: 0rpx 30rpx 20rpx 30rpx;
  font-size: 32rpx;
  line-height: 4r0px;
  color: #666666;
  height: auto;
  display: block;
  float: left;
}
.no_btt2 {
  width: 690rpx;
  height: 94rpx;

  background: #256aff;
  border-radius: 8rpx;
  text-align: center;
  font-size: 36rpx;
  color: #ffffff;
  line-height: 94rpx;
  position: fixed;
  left: 30rpx;
  bottom: 20rpx;
}

.addb view.cell-detail {
  width: 400rpx;
  margin: 0;
  line-height: 90rpx;
}

.uni-picker-view-indicator {
  background: none !important;
}

.time-picker-tool * {
  font-size: 32rpx !important;
}
.tool-title {
  display: none !important;
}
.date-time-picker .date-time-container .time-picker-tool .confirm-btn {
  color: #007aff !important;
}

.noborder {
  margin-bottom: 0 !important;
}

.addi2 input.data_i {
  width: 400rpx;
  margin-right: 0;
}
</style>
